/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础变量 */
:root {
    --primary-color: #0071e3; /* 苹果蓝 */
    --primary-hover: #0077ed;
    --light-gray: #f5f5f7; /* 苹果浅灰背景 */
    --medium-gray: #86868b; /* 苹果中灰文字 */
    --dark-gray: #1d1d1f; /* 苹果深灰/黑色 */
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-gray);
    background-color: #fff;
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background-color: #fff;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 头部样式 */
header {
    background-color: var(--light-gray);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
}

header p {
    font-size: 18px;
    color: var(--medium-gray);
}

/* 上传区域样式 */
.upload-container {
    margin-bottom: 40px;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px dashed #ccc;
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-box.dragover {
    background-color: rgba(0, 113, 227, 0.05);
    border-color: var(--primary-color);
}

.upload-box i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.upload-box h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.upload-box p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* 压缩设置区域 */
.compression-settings {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.compression-settings h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.format-selector {
    margin-bottom: 20px;
}

.format-selector label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.format-selector select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 16px;
}

/* 预览区域样式 */
.preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
}

.preview-box {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.preview-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.image-preview {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-info {
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.file-info p {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--medium-gray);
}

.file-info span {
    font-weight: 500;
    color: var(--dark-gray);
}

/* 图片处理区域 */
.image-processing {
    margin-bottom: 60px;
}

/* 页脚样式 */
footer {
    background-color: var(--light-gray);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    color: var(--medium-gray);
    font-size: 14px;
} 